<?php
// +----------------------------------------------------------------------+
// | The Answern Inc                                                  |
// +----------------------------------------------------------------------+
// | Copyright (c) 2017, Answern Inc. All rights reserved.            |
// +----------------------------------------------------------------------+
// | Authors: Answern Inc. 
// |                                                                      |
// +----------------------------------------------------------------------+
 
/**
 * @version  1.0
 * @author   zxiaofee
 * @date     2017-05-11
 */

namespace App\Controllers\Common;
use \App\Libs\Welcome\Welcome;
use \App\Libs\Base\Constant;

class WelcomeGet extends \App\Libs\Base\BaseAction
{
	public function execute() {
		//获取图片
		$ret = Welcome::instance()->get();
		//系统错误
		if (!$ret) {
			return \App\Libs\Views\Json::view(Constant::ERR, '获取失败', '');
		}
		//返回成功数据
		return \App\Libs\Views\Json::view(Constant::OK, '成功', $ret);
	}
}